import noDataLess from "./noData.module.less";
interface NoDataProps {
  children: React.ReactNode;
  noDataTips: string;
}
function noData({ children, noDataTips }: NoDataProps) {
  return (
    <>
      <div className={noDataLess.noDataContent}>
        <div className="noDataImg">
          <img src="/public/img/nodata.avis" alt="" />
        </div>
        <div className="noDataTitle">{noDataTips}</div>
        <slot>{children}</slot>
      </div>
    </>
  );
}

export default noData;
